# -*- coding: utf-8 -*-
import unittest

from syntax.file_helper import FileHelper
from syntax.thread_helper import ThreadHelper


class SyntaxTest(unittest.TestCase):

    def test_thread_clean_workspace(self):
        root = '/data/code/java'
        ThreadHelper.thread_clean_workspace(root)

    def test_file_gen_sql(self):
        data_file = '../res/source.txt'
        split = ''
        template = "'{}',\n"
        output_file = FileHelper().gen_sql(data_file, template=template, split=split)
        print('output file', output_file)
